package com.it.service;

import com.it.bean.UserBasicBean;
import com.it.dao.UserBasicDao;

import java.util.List;

public class UserServiceImpl implements UserService {
    public UserBasicDao userBasicDao;

    @Override
    public UserBasicBean login(String loginId, String pwd) throws Exception {
        UserBasicBean bean = userBasicDao.getUserBasicByLoginId(loginId, pwd);
        return bean;
    }

    @Override
    public UserBasicBean getUserBasicBeanById(String id) throws Exception {
        return userBasicDao.getUserBasicBeanById(id);
    }

    @Override
    public List<UserBasicBean> getFriendListByUid(String uid) {
        return null;
    }

    @Override
    public List<UserBasicBean> getFriendListByUser(UserBasicBean userBasicBean) throws Exception {
        return userBasicDao.getFriendListByUser(userBasicBean);
    }
}
